package com.basic.modules.nykf.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.basic.modules.nykf.entity.CustomerShopBusinessEntity;
import com.basic.modules.nykf.entity.RenewBatchEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RenewBatchDao extends BaseMapper<RenewBatchEntity> {

    // 获取一个批次索引
    Integer getRenewIndex(CustomerShopBusinessEntity customerShopBusinessEntity);

    // 根据批次id找到上一次批次对象
    RenewBatchEntity getPreviousPeriodData(@Param("batchId") String batchId, @Param("dxfCustomerShopBusinessId") Long dxfCustomerShopBusinessId);

}
